import request from '@/utils/request'

// 查询热力学数据列表
export function listThermoInfo(query) {
  return request({
    url: 'service-ry/output/thermoInfo/list',
    method: 'get',
    params: query
  })
}

// 查询热力学数据详细
export function getThermoInfo(id) {
  return request({
    url: 'service-ry/output/thermoInfo/' + id,
    method: 'get'
  })
}

// 新增热力学数据
export function addThermoInfo(data) {
  return request({
    url: 'service-ry/output/thermoInfo',
    method: 'post',
    data: data
  })
}

// 修改热力学数据
export function updateThermoInfo(data) {
  return request({
    url: 'service-ry/output/thermoInfo',
    method: 'put',
    data: data
  })
}

// 删除热力学数据
export function delThermoInfo(id) {
  return request({
    url: 'service-ry/output/thermoInfo/' + id,
    method: 'delete'
  })
}

// 导出热力学数据
export function exportThermoInfo(query) {
  return request({
    url: 'service-ry/output/thermoInfo/export',
    method: 'get',
    params: query
  })
}